package com.fsm.common.log.entity.excelbo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "操作日志")
@HeadRowHeight(value = 30) // 头部行高
@ContentRowHeight(value = 25) // 内容行高
@ColumnWidth(value = 20) // 列宽, 可以作用在类或字段上
public class TSystemOperationLogBo {

    @ExcelProperty(value = "用户名")
    private String userName;

    @ExcelProperty(value = "系统端类型")
    private String systemType;

    @ExcelProperty(value = "操作菜单")
    private String menu;

    @ExcelProperty(value = "业务操作类型")
    private String operationType;

    @ExcelProperty(value = "调用状态")
    private String callState;

    @ExcelProperty(value = "访问记录的关键字段和取值")
    private String recordKey;

    @ExcelProperty(value = "操作界面带有注释字段")
    private String comments;

    @ExcelProperty(value = "返回结果的数据")
    private String returnKey;

    @ExcelProperty(value = "创建时间")
    private Date createTime;

}
